package com.huiminpay.merchant.convert;

import com.huiminpay.merchant.dto.MerchantDTO;
import com.huiminpay.merchant.entity.Merchant;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @ClassName: MerchantRegisterConvert
 * @Package: com.huiminpay.merchant.convert
 * @Description: 对象转换类
 * @Author 谢同学
 * @Create 2023/11/19 11:47
 * @Version 1.0
 */
@Mapper
public interface MerchantCovert {
    MerchantCovert INSTANCE = Mappers.getMapper(MerchantCovert.class); //
    MerchantDTO entity2dto(Merchant merchant);
    Merchant dto2entity(MerchantDTO dto);
    List<MerchantDTO> entityList2dtoList(List<Merchant> entityList);
    List<Merchant> dtoList2entityList(List<MerchantDTO> dtoList);
}
